package com.laoluo.erp.dao;

import java.util.List;
import java.util.Map;

import com.laoluo.erp.util.PageListData;

public interface BaseDAO<T,PK> {
	public T save(T entity);
	public void update(T entity);
	public void delete(T entity);
	public void delete(Class<T> entityClass, PK id);
	public T findById(Class<T> entityClass, PK id);
	public List<T> findAll(Class<T> entityClass);
	@SuppressWarnings("rawtypes")
	public PageListData queryPage(Class<T> entityClass,Map params, int start, int limit, int page);
}
